const usersDao = require('../dao/usersDao');
module.exports.find = async function () {
    return await usersDao.find();
}
//登录
module.exports.admin = async function (username, pwd) {
    let data = await usersDao.findByUsername(username, pwd)
    if (data.length > 0) {
        return data;
    } else {
        return {};
    }
}